<div
  rules={[
    {},
    { min: 8, max: 40, message: 'Password length between 8 and 40 only.' },
  ]}
  class="text-red"
  text="green"
/>
